<div class="center marg-bot-5">
	<a style="cursor: pointer;" onclick="javascript:window.open('index.php?cont=adminnews&amp;act=addnews','','width=1000,height=700,resizable=1,scrollbars=1','');"><img src="<?php echo Config::$imgDir . '/icoplus.gif' ?>" alt="add news item" title="add news item" border="0" />&nbsp;Add news item</a>
</div>
<div class="news-container">
	<table id="news-table" cellpadding="0" cellspacing="0">
		<?php if(!$news): ?>
			No news at this moment
		<?php else: ?>
			<?php foreach ($news as $newsItem): ?>
				<tr>
					<td class="<?php echo ($newsItem->getVisible()) ? 'news-item-title' : 'news-item-title-novis'; ?>">
						<?php echo $newsItem->getTitle(); ?>
					</td>
				</tr>
				<tr>
					<td class="<?php echo ($newsItem->getVisible()) ? 'news-item-content' : 'news-item-content-novis'; ?>"><?php echo $newsItem->getText(); ?></td>
				</tr>
				<tr>
					<td><a style="cursor: pointer;" onclick="javascript:window.open('index.php?cont=adminnews&amp;act=edit&amp;id=<?php echo $newsItem->getId(); ?>','','width=1000,height=700,resizable=1,scrollbars=1','');" >&nbsp;<img src="<?php echo Config::$imgDir . '/edit.png'; ?>" alt="edit news item" border="0" /></a> <?php if(!$newsItem->getVisible()): ?>| <a style="cursor: pointer;">Make visible</a> <?php else: ?>| <a style="cursor: pointer;">Hide</a> <?php endif; ?> | <a style="cursor: pointer;"><img src="<?php echo Config::$imgDir . '/delete.png'; ?>" alt="delete leksem" border="0" /></a> </td>
				</tr>
				<tr>
					<td>&nbsp;</td>
				</tr>
			<?php endforeach; ?>
		<?php endif; ?>
	</table>
</div>